import VueRouter from 'vue-router';


import home from './components/tabbar/home.vue'
import mumber from './components/tabbar/mumber.vue'
import car from './components/tabbar/car.vue'
import search from './components/tabbar/search.vue'

import newsList from './components/news/newsList.vue'
import newsInfo from './components/news/newsInfo.vue'

import photoList from './components/photo/photoList.vue'

import productList from './components/product/productList.vue'
var router = new VueRouter({
    routes: [
        { path: "/", redirect: "/home" },
        { path: "/home", component: home },
        { path: "/mumber", component: mumber },
        { path: "/car", component: car },
        { path: "/search", component: search },

        { path: "/home/newsList", component: newsList },
        { path: "/home/newsInfo/:id", component: newsInfo },

        { path: "/home/photoList", component: photoList },

        { path: "/home/productList",component:productList}

    ],
    linkActiveClass: "mui-active"
});

export default router;